win32: fix pasting screenshots taken with PrintScreen or Alt+PrintScreen
authorDieter Verfaillie <dieterv@optionexplicit.be>
Fri, 4 Nov 2011 08:44:35 +0000 (09:44 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 10 Nov 2011 16:41:12 +0000 (17:41 +0100)
commit68d28aad97894c5b1fa6875b2cb3a9baa0c8284f
tree44dab0748c3af5fbb993a6788f5004d60c848ffe
parent4e10d9604b0a5a22d1105b3eab685f89239a9cc7
win32: fix pasting screenshots taken with PrintScreen or Alt+PrintScreen

These are found on the clipboard in the biCompression == BI_BITFIELDS &&
biBitCount >= 16 format. In this case the BITMAPINFOHEADER is followed
by three DWORD specifying the masks of the red green and blue components,
but bfOffBits was not being adjusted accordingly.

Based on Massimo's comment on bug 631384 and verified on
http://msdn.microsoft.com/en-us/library/dd183386%28v=VS.85%29.aspx

https://bugzilla.gnome.org/show_bug.cgi?id=631384
gdk/win32/gdkselection-win32.c